<?php

namespace App\Trip\Orders\BookOrders\Train\SelectedSeats;

use App\Models\Train\TrainOrderPassengers\TrainOrderPassenger;

class MatchedPassengers
{
    private TrainOrderPassenger $passenger;
    private MatchSeatInfo       $seatInfo;

    public function __construct(TrainOrderPassenger $passenger, MatchSeatInfo $seatInfo)
    {
        $this->passenger = $passenger;
        $this->seatInfo  = $seatInfo;
    }

    public function getPassenger(): TrainOrderPassenger
    {
        return $this->passenger;
    }

    public function getSeatInfo(): MatchSeatInfo
    {
        return $this->seatInfo;
    }

}